package com.tpyule.tpclass.service;

import com.tpyule.tpclass.entity.bo.MenuDetailBo;
import com.tpyule.tpclass.entity.pojo.Menu;
import com.tpyule.tpclass.entity.pojo.MenuPath;

import java.util.List;

/**
 * @author zzz
 * @version 1.0
 * @date 2020/5/5 9:55
 */
public interface MenuService {
    /**
     * 插入menu返回Id
     * @param menu
     * @param paths
     * @return
     */
    public int insertMenu(Menu menu,int[] paths);

    /**
     * 获取菜单
     * @param roleId
     * @return
     */
    public  List<MenuDetailBo> getListMenu(int roleId);

    // MenuPath操作

    public List<MenuPath> getListMenuPathByMenuId(int menuId);
    public void updateMenuPath(Menu menu,int[] paths);
}
